#_*_ coding: utf-8 _*_
__author__ = 'MyHome'
from django import forms
from models import *


class frmPost(forms.ModelForm):
    class Meta:
        model = Post
        fields = ('author','tvbv','message')
        widgets = {
            'author': forms.TextInput(attrs={'placeholder':"Введіть Ваше ім'я"}),
            'tvbv': forms.TextInput(attrs={'placeholder':"Введіть Ваше ТВБВ"}),
            'message': forms.Textarea
        }


class frmAnswer(forms.ModelForm):
    class Meta:
        model = Answer
        fields = ('author','tvbv','message')
        widgets = {
            'author': forms.TextInput(attrs={'placeholder':"Введіть Ваше ім'я"}),
            'tvbv': forms.TextInput(attrs={'placeholder':"Введіть Ваше ТВБВ"}),
            'message': forms.Textarea
        }